home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / liboctave / CmplxHESS.h < prev    next >
C/C++ Source or Header  |  1996-03-03  |  2KB  |  84 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. #if !defined (octave_ComplexHESS_h)
  24. #define octave_ComplexHESS_h 1
  25.  
  26. #if defined (__GNUG__)
  27. #pragma interface
  28. #endif
  29.  
  30. class ostream;
  31.  
  32. #include "CMatrix.h"
  33.  
  34. class
  35. ComplexHESS
  36. {
  37. public:
  38.  
  39.   ComplexHESS (void) : hess_mat (), unitary_hess_mat () { }
  40.  
  41.   ComplexHESS (const ComplexMatrix& a) { init (a); }
  42.  
  43.   ComplexHESS (const ComplexMatrix& a, int& info) { info = init (a); }
  44.  
  45.   ComplexHESS (const ComplexHESS& a)
  46.     : hess_mat (a.hess_mat), unitary_hess_mat (a.unitary_hess_mat) { }
  47.  
  48.   ComplexHESS& operator = (const ComplexHESS& a)
  49.     {
  50.       if (this != &a)
  51.     {
  52.       hess_mat = a.hess_mat;
  53.       unitary_hess_mat = a.unitary_hess_mat;
  54.     }
  55.       return *this;
  56.     }
  57.  
  58.   ~ComplexHESS (void) { }
  59.  
  60.   ComplexMatrix hess_matrix (void) const { return hess_mat; }
  61.  
  62.   ComplexMatrix unitary_hess_matrix (void) const
  63.     {
  64.       return unitary_hess_mat;
  65.     }
  66.  
  67.   friend ostream& operator << (ostream& os, const ComplexHESS& a);
  68.  
  69. private:
  70.  
  71.   ComplexMatrix hess_mat;
  72.   ComplexMatrix unitary_hess_mat;
  73.  
  74.   int init (const ComplexMatrix& a);
  75. };
  76.  
  77. #endif
  78.  
  79. /*
  80. ;;; Local Variables: ***
  81. ;;; mode: C++ ***
  82. ;;; End: ***
  83. */
  84.